export function queue(num: Array<Promise<unknown>>) {
  num.reduce((promise, n) => {
    return promise.then(_ => { 
      return new Promise(resolve => {
        setTimeout(() => {
          console.log(n);
          resolve('ss')
        }, 1000);
      })
    })
   })
}
